// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Element from 'element-ui'
import i18n from './lang/index'
import store from './store'
import FPermission from '@/components/f-permission'
import checkPermission from '@/utils/permission'
import VideoPlayer from 'vue-video-player'
import 'element-ui/lib/theme-chalk/index.css'
import BaiduMap from 'vue-baidu-map'

require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.prototype.checkPermission = checkPermission
Vue.config.productionTip = false
Vue.use(Element, {
  i18n: (key, value) => i18n.t(key, value)
})
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '84fENVlS0UYtSNQD4e3C9WKy7tDuec8H'
})
Vue.use(FPermission)
Vue.use(VideoPlayer)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  i18n,
  router,
  store,
  components: {App},
  template: '<App/>'
})
